@using Web.Infrastructure.JSExtensions
@model BLL.Services.Comments.Listing.CommentsListing
@{
    Layout = null;
}
<a class="close" href="@Url.Action(MVC.Admin.Content.Dashboard())"></a>
<form class="filters" action="#">
    <fieldset>
        <legend>Search:</legend>
        @Html.EditorFor(x => x.Filter)
        <div class="buttons">
            <button class="search" type="button">Search</button>
            <button class="reset" type="reset">Clear</button>
        </div>
    </fieldset>
</form>
<form method="post" class="listing" action="" >
    @(Html.GridFor(x => x.Comments)
        .TableCssClass("grid")
        .Identity(x => x.CommentId)
        .Column(x => x.UserEmail)
        .Column(x => x.BookTitle)
        .Column(x => x.DateOfPublish)
        .EditEntityAction(MVC.Admin.Comments.Edit())
        .NoItemsText("There are no comments.")
        .PaginatorAction(MVC.Admin.Comments.Listing())
        .Render()
    )
    <div class="buttons">
        <button type="button" class="create">Create</button>
        <button type="button" class="delete">Delete</button>
    </div>
</form>
